<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">

	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>用户列表</title>
		<link rel="stylesheet" href="/css/bootstrap.min.css">
		<script src="/js/jquery-1.9.1.min.js"></script>
	</head>

	<body>
		<div class="container">
			<div class="row">


				<form class="form-inline" method="post" action="/user/searchUser">
					<h2>用户名查找:</h2>
					<div class="form-group">

						<input type="text" class="form-control" name="username" id="username" placeholder="模糊查找用户名">
					</div>
					<button type="submit" class="btn btn-default">查找</button>
				</form>

				<div class="col-md-12" style="padding:2em 0;">
					<div class="table-responsive">
						<h2>用户列表:</h2>
						<table class="table table-bordered table-striped" id="test_table">
							<thead>
							<tr>
								<th>id</th>
								<th>用户名</th>
								<th>密码</th>
								<th>QQ</th>
							</tr>
							<tr th:each="user:${list}">
								<td th:text="${user.id}"></td>
								<td th:text="${user.username}"></td>
								<td th:text="${user.password}"></td>
								<td th:text="${user.qq}"></td>
							</tr>
							</thead>
							<tbody>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
	</body>
		<script src="/js/jquery-1.9.1.min.js"></script>
</html>